import request from '@/utils/request'

export function loginAPI (data) {
  return request.post('/h5/user/login', data)
}
export function registerAPI (data) {
  return request.post('/h5/user/register', data)
}

export const backLogin = () => request.get('/h5/user/logout')

export const userAPI = () => request.get('/h5/user/currentUser')
